package com.bbva.dao;

import javax.persistence.EntityManager;

import com.bbva.model.Account;

public class AccountDAO {

	private EntityManager em;
	
	public void persist(Account account) {
		em.getTransaction().begin();
		em.persist(account);
		em.getTransaction().commit();
	}

	public EntityManager getEm() {
		return em;
	}

	public void setEm(EntityManager em) {
		this.em = em;
	}
}
